﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class controls_AdminMenuLeft : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

            //chesk is authenticated
            if (!Page.User.Identity.IsAuthenticated)
            {
                pSideBar.Visible = false;
            }
            else
            {
                pSideBar.Visible = true;
            }
        }
    }
}